home *** CD-ROM | disk | FTP | other *** search
/ Linux 68k 2000 / Linux 68k 2000.iso / install / atari / drv1440.bin / INSTALL.SH next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1999-05-25  |  797 b   |  32 lines

  1. #!    /bin/sh
  2.  
  3. # Install the kernel modules and modconf tool from this boot floppy onto
  4. # the root filesystem. The commands used by this script are limited to
  5. # the ones available on the root floppy.
  6. set -e
  7. umask 022
  8.  
  9. if [ ! -f install.sh ]; then
  10.     echo "Error: Change directory to the floppy before running this script." 1>&2
  11.     exit -1
  12. fi
  13. FLOPPY=`pwd`
  14.  
  15. if [ $# -gt 0 ]; then
  16.     DDIR=$1
  17.     cd ${DDIR}
  18. fi
  19. zcat < ${FLOPPY}/modules.tgz | star
  20. zcat < ${FLOPPY}/modconf.tgz | star
  21. test -f /bin/sed || ln -sf `pwd`/bin/sed /bin/sed
  22. test -f /usr/bin/whiptail || ln -sf `pwd`/usr/bin/whiptail /usr/bin/whiptail
  23. if [ -e ${FLOPPY}/pcmcia.tgz ]; then
  24.     zcat < ${FLOPPY}/pcmcia.tgz |star
  25.     ln -si `pwd`/sbin/ifport /sbin/ifport
  26.     ln -si `pwd`/sbin/ifuser /sbin/ifuser
  27.     mv `pwd`/sbin/cardmgr /sbin/cardmgr
  28. fi
  29.  
  30. sync
  31. exit 0
  32.